package com.example.web.config;

import java.util.Map;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

import com.example.web.entity.Student;

@Component
public class QueueAddReceiver {

	@JmsListener(destination="topic_RECEIVE_ADD_FIREND",containerFactory="MyjmsTopicListener")
	public void myReceiver1(Map<String, Object> map) {
		System.out.println("1"+map);
	}
	@JmsListener(destination="topic_RECEIVE_ADD_FIREND",containerFactory="MyjmsTopicListener")
	public void myReceiver2(Map<String, Object> map) {
		System.out.println("1"+map);
	}
}
